from audio_pkg.core.argument.arguments import ArgumentsValidator, MyArgument
from audio_pkg.models.configdata import VoiceParamConfig

class ArgumentParser:
    def __init__(self,par_config:VoiceParamConfig):
        self.par_config = par_config
        self.validator = ArgumentsValidator()
        self.myargument = MyArgument(self.par_config, self.validator)

    def parse(self):
        """解析命令行参数"""
        return self.myargument.parse_args()